import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Admin from '../views/Admin.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,

      children:[
        {
          path:'admin',
          name:'admin',
          component:Admin
        }
      ]
    },
    
  
  ]
})

export default router
